import http from '../utils/request.js'

// 二维码
export const getinfo = (data) => {
    return http.get('getinfo/'+ data)
}
// 授权微信
export const getOpenid =(data)=>{
    return http.get('getopenid/'+data);
}


// openid login
export const openIdLogin = (openid) => {
    return http.get('dlpanduan/' + openid)
}


// 注册
export const RegisterUser = (openid,name,idcard,tel) => {
    return http.get('shenling/'+openid+'/'+name+'/'+idcard+'/'+tel);
}


// 扫码验证成功
export const Saomadengji = (saomazhe,beisaomazhe,money,discount,text) => {
    return http.get('saomadengji/'+saomazhe+'/'+beisaomazhe+'/'+money+'/'+discount+'/'+text)
}